﻿<Window x:Class="WpfAppWcfRestConsumer.Views.AddPersonWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Add Person " Height="300" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="180"/>
        </Grid.ColumnDefinitions>

        <TextBlock Text="Guid:" />
        <TextBox Grid.Column="1" x:Name="txtGuid" IsReadOnly="True" TextWrapping="Wrap"
                 Text="{Binding Path=Id}"/>

        <TextBlock Text="Name:" Grid.Row="1"/>
        <TextBox Grid.Column="1" Grid.Row="1" x:Name="txtName" Text="{Binding Name, Mode=TwoWay}"/>

        <TextBlock Text="LastName:" Grid.Row="2"/>
        <TextBox Grid.Column="1" Grid.Row="2" x:Name="txtLastName" Text="{Binding LastName, Mode=TwoWay}" />
       
        <StackPanel Grid.Row="3" Grid.ColumnSpan="2">
            <Button x:Name="btnAdd" Content="Add" Click="btnAdd_Click" IsCancel="False"/>
            <Button x:Name="btnCancel" Content="Cancel" Click="btnCancel_Click" IsCancel="True"/>
        </StackPanel>
        
    </Grid>
</Window>
